package org.coopac.service.impl;
import java.util.List;
import org.coopac.dao.ITransaccionDepositoDAO;
import org.coopac.model.CoopacTransaccionDeposito;
import org.coopac.service.ITransaccionDepositoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
	@Transactional
	@Service("transacciondepositoService")
	public class TransaccionDepositoService implements ITransaccionDepositoService {
	@Autowired
	private ITransaccionDepositoDAO transacciondepositoDAO;

	@Override
	public List<CoopacTransaccionDeposito> listar() {
	return transacciondepositoDAO.listar();
	}

	@Override
	public void save(CoopacTransaccionDeposito transacciondeposito) {
		transacciondepositoDAO.save(transacciondeposito);
	}

	@Override
	public void update(CoopacTransaccionDeposito transacciondeposito) {
		transacciondepositoDAO.update(transacciondeposito);
	}

	@Override
	public void delete(CoopacTransaccionDeposito transacciondeposito) {
		transacciondepositoDAO.delete(transacciondeposito);
	}

	@Override
	public CoopacTransaccionDeposito getById(int id){
		return transacciondepositoDAO.getById(id);
	}

}
